﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using HZH_Controls.Controls;
using Petroleum.UC.Public;
using Petroleum.Model;

namespace Petroleum.UC
{
    public partial class Step12Img : UserControl
    {
        FormMain main = new FormMain();
        public Step12Img(FormMain main)
        {
            InitializeComponent();
            this.main = main;
            picConductor1.Initialization("Wells Slot Location");
            picConductor2.Initialization("The Vertical Project");
        }
        private void ucBtnExt4_BtnClick(object sender, EventArgs e)
        {
            Session.CasingProgram.ConductorImg1 = picConductor1.ImgUrl;
            Session.CasingProgram.ConductorImg2 = picConductor2.ImgUrl;

            Session.CasingProgram.SurfaceImg1 = picSurfaceCasing1.ImgUrl;
            Session.CasingProgram.SurfaceImg2 = picSurfaceCasing2.ImgUrl;

            Session.CasingProgram.ProductioImg1 = picProductionCasing1.ImgUrl;
            Session.CasingProgram.ProductioImg2 = picProductionCasing2.ImgUrl;
            main.AddControl(new Step13(main));
        }
        private void btnUp_BtnClick(object sender, EventArgs e)
        {
            main.AddControl(new Step12(main));
        }
    }
}
